<!DOCTYPE html>
<html>
    <head>
        <script>
            window.onload = function() {
              document.body.style.top = "100px";
              document.body.offsetWidth;
            };
        </script>
    </head>
    <body><div style="position: relative; top: inherit"><table style="position: absolute; top: inherit"><tr><td>This text should be 200px from the top of the body</td></tr></table></div></body>
</html>
